package com.ztgf.order.models.dto.purchase;

import com.baomidou.mybatisplus.annotations.TableName;
import com.ztgf.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 采购商品表DTO
 *
 * @author mxli
 * @Date 2021-05-17 10:16:25
 */
@Data
@TableName("purchase_commodity")
@ApiModel(value="采购商品表对象", description="采购商品表对象")
public class PurchaseCommodityDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "创建名字")
    private String createUserName;
    @ApiModelProperty(value = "更新人名字")
    private String updateUserName;
    @ApiModelProperty(value = "采购id")
    private Long purchaseId;
    @ApiModelProperty(value = "商品id")
    private Long commodityId;
    @ApiModelProperty(value = "商品url")
    private String commodityUrl;
    @ApiModelProperty(value = "商品logourl")
    private String commodityLogoUrl;
    @ApiModelProperty(value = "品牌id")
    private Long brandId;
    @ApiModelProperty(value = "商品名称")
    private String commodityName;
    @ApiModelProperty(value = "规格型号")
    private String specificationModel;
    @ApiModelProperty(value = "类型 0虚拟商品、1平台商品")
    private Integer type;
    @ApiModelProperty(value = "数量")
    private Integer num;
    @ApiModelProperty(value = "质保时间：单位月")
    private Integer warranty;
    @ApiModelProperty(value = "收货人")
    private String receiveName;
    @ApiModelProperty(value = "收货人电话")
    private String receiveMobile;
    @ApiModelProperty(value = "收货人区域")
    private Long receiveAreaId;
    @ApiModelProperty(value = "收货人地址")
    private String receiveAddress;
    @ApiModelProperty(value = "预计收货时间")
    private Date receiveExpectedTime;
    @ApiModelProperty(value = "是否可以接受预售商品0不接受，1接受")
    private Integer presaleStatus;
    @ApiModelProperty(value = "首款比例")
    private BigDecimal fristScale;
    @ApiModelProperty(value = "尾款比例")
    private BigDecimal finalScale;
    @ApiModelProperty(value = "详情")
    private String remark;
    @ApiModelProperty(value = "单价")
    private BigDecimal price;
    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;
    @ApiModelProperty(value = "报价状态：0报价中、1报价结束、2取消报价、3流标 ")
    private Integer bargainStatus;

    @ApiModelProperty(value = "申请平台砍价服务费")
    private BigDecimal purchaseFeeMoney;
    @ApiModelProperty(value = "平台砍价服务费根据商品扣除")
    private BigDecimal purchaseFeeMoneyScale;
    @ApiModelProperty(value = "pdf路径")
    private String pdfUrl;
    @ApiModelProperty(value = "商品图片url")
    private String commodityImgUrl;
}